package com.kaka.TheSingletonPattern;

public class Test {
    public static void main(String[] args) {
        User1 user11 = User1.getInstance();
        User1 user12 = User1.getInstance();
        System.out.println(user11 == user12);
        System.out.println("--------------");
        User2 user21 = User2.getInstance();
        User2 user22 = User2.getInstance();
        System.out.println(user21 == user22);
    }
}
